package com.wyix.entity;

/**
 * @author wangdx
 * @since 2025/8/1
 */
// 空调：实现自己的开机、关机、调节逻辑
public class AirConditioner extends Appliance {
    public AirConditioner(String name) {
        super(name);
    }

    @Override
    public void powerOn() {
        System.out.println(name + "开机：开始送风，默认26℃");
    }

    @Override
    public void powerOff() {
        System.out.println(name + "关机：停止送风，关闭压缩机");
    }

    // 调节参数：设置温度（参数为温度值）
    @Override
    public void adjust(String temperature) {
        System.out.println(name + "调节：设置温度为【" + temperature + "℃】");
    }
}